package com.zxt.content.copywriting.service.impl;

import com.zxt.content.common.utils.ZXTBeanUtils;
import com.zxt.content.copywriting.manager.PublicCopywritingManager;
import com.zxt.content.copywriting.resp.PublicCopywritingVO;
import com.zxt.content.copywriting.service.IPublicCopywritingService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 公共文案模块业务逻辑层
 *
 * @author zxt
 */
@Service(value = "publicCopywritingService")
@AllArgsConstructor
public class PublicCopywritingServiceImpl implements IPublicCopywritingService {

    private PublicCopywritingManager publicCopywritingManager;

    @Override
    public List<PublicCopywritingVO> queryList() {
        return ZXTBeanUtils.beanCopy(publicCopywritingManager.list(), PublicCopywritingVO.class);
    }
}
